one eye on

Paying some but not full attention to, as in
He ran the rehearsal with one eye on the clock